<%@ page language="java" import="java.util.*,edu.fzu.fundmgr.domain.*" pageEncoding="utf-8"%>
<%
	FinancialAct financialAct = (FinancialAct)request.getAttribute("financial_account");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>基金账户查询结果</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
	<style>
	   .error{
	     color:red;
	   }
	</style>
	
	<script type="text/javascript">
	    function removeFinancialAct(acc_no){
	    
	       if(confirm("您真的要删除编号为 " + acc_no + " 的资金账户记录吗?")){
	          
	          location.href = "financialActMgr?act=del&acc_no=" + acc_no;
	       }
	    }
	    
	    function updateFinancialAct(idcard_no){
	    
	       location.href = "financialActMgr?act=query&acc_no=" + acc_no;
	    }
	</script>
	
	<style> 
	  body{
	    padding:10px;
	  }
	</style>
  </head>
  
  <body>
    <h3>基金账户查询结果</h3>
    <%
    	if(financialAct!=null){
    %>
    <table border="0">
      <tr>
        <th>账户编号</th>
        <th>账户金额</th>
        <th>账户状态</th>
        <th>身份证号</th>
        <th>创建时间</th>
      </tr>
      <tr>
        <td><%=financialAct.getAccNO()%></td>
        <td><%=financialAct.getAccAmount()%></td>
        <td><%=financialAct.getAccStatus()%></td>
        <td><%=financialAct.getIdCardNO()%></td>
        <td><%=financialAct.getCreatedDate()%></td>
        <td>
          <button onclick="updateFinancialAct(<%=financialAct.getAccNO()%>);">修改</button>
          <button onclick="removeFinancialAct(<%=financialAct.getAccNO()%>);">删除</button>
        </td>
      </tr>
    </table>
    <%}else{ %>
      <span class="error">该资金账户不存在!</span>
    <%} %>
  </body>
</html>
